From: Felix Fietkau Date: Mon, 14 Dec 2020 11:59:32 +0000 (+0100) Subject: netifd: fix a typo in vlandev hotplug support X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=88c6003e2b4fdc0c990045ff140bf19b37ba745a;p=project%2Fnetifd.git netifd: fix a typo in vlandev hotplug support Need to check the type of the vlan device, not the underlying device Signed-off-by: Felix Fietkau --- diff --git a/vlandev.c b/vlandev.c index 2f86192..f2440a7 100644 --- a/vlandev.c +++ b/vlandev.c @@ -112,7 +112,7 @@ static void vlandev_hotplug_check(struct vlandev_device *mvdev) struct device *dev = mvdev->parent.dev; if (!dev || !dev->hotplug_ops || avl_is_empty(&dev->vlans.avl) || - dev->type != &vlan8021q_device_type) { + mvdev->dev.type != &vlan8021q_device_type) { mvdev->dev.hotplug_ops = NULL; return; }